package com.hxw.schema.factory;

/**
 * Created by Think on 2018/5/4.
 */
public class OperationDiv extends Operation {

    @Override
    public double getResult(){
        if(getB()==0D){
            return 0D;
        }else{
            return getA()/getB();
        }

    }

}
